package cn.jiyun.user.service.impl;

import cn.jiyun.user.mapper.UserMapper;
import cn.jiyun.user.pojo.User;
import cn.jiyun.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User queryById(Long id) {
//        try {
//            Thread.sleep(3000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        User user = userMapper.selectByPrimaryKey(id);
        return user;
    }
}
